home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / X11 / XAnyEvent.z / XAnyEvent
Encoding:
Text File  |  1998-10-30  |  5.8 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXAAAAnnnnyyyyEEEEvvvveeeennnntttt((((3333XXXX11111111))))    XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))     XXXXAAAAnnnnyyyyEEEEvvvveeeennnntttt((((3333XXXX11111111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XAnyEvent, XEvent - generic X event structures
  10.  
  11.      SSSSTTTTRRRRUUUUCCCCTTTTUUUURRRREEEESSSS
  12.           All the event structures declared in <_X_1_1/_X_l_i_b._h> have the
  13.           following common members:
  14.           typedef struct {
  15.                int type;
  16.                unsigned long serial;    /* # of last request processed by server */
  17.                Bool send_event;         /* true if this came from a SendEvent request */
  18.                Display *display;        /* Display the event was read from */
  19.                Window window;
  20.           } XAnyEvent;
  21.  
  22.           The type member is set to the event type constant name that
  23.           uniquely identifies it.  For example, when the X server
  24.           reports a _G_r_a_p_h_i_c_s_E_x_p_o_s_e event to a client application, it
  25.           sends an _X_G_r_a_p_h_i_c_s_E_x_p_o_s_e_E_v_e_n_t structure with the type member
  26.           set to _G_r_a_p_h_i_c_s_E_x_p_o_s_e.  The display member is set to a
  27.           pointer to the display the event was read on.  The
  28.           send_event member is set to _T_r_u_e if the event came from a
  29.           _S_e_n_d_E_v_e_n_t protocol request.  The serial member is set from
  30.           the serial number reported in the protocol but expanded from
  31.           the 16-bit least-significant bits to a full 32-bit value.
  32.           The window member is set to the window that is most useful
  33.           to toolkit dispatchers.
  34.  
  35.           The _X_E_v_e_n_t structure is a union of the individual structures
  36.           declared for each event type:
  37.           typedef union _XEvent {
  38.                int type;                /* must not be changed */
  39.                XAnyEvent xany;
  40.                XKeyEvent xkey;
  41.                XButtonEvent xbutton;
  42.                XMotionEvent xmotion;
  43.                XCrossingEvent xcrossing;
  44.                XFocusChangeEvent xfocus;
  45.                XExposeEvent xexpose;
  46.                XGraphicsExposeEvent xgraphicsexpose;
  47.                XNoExposeEvent xnoexpose;
  48.                XVisibilityEvent xvisibility;
  49.                XCreateWindowEvent xcreatewindow;
  50.                XDestroyWindowEvent xdestroywindow;
  51.                XUnmapEvent xunmap;
  52.                XMapEvent xmap;
  53.                XMapRequestEvent xmaprequest;
  54.                XReparentEvent xreparent;
  55.                XConfigureEvent xconfigure;
  56.                XGravityEvent xgravity;
  57.                XResizeRequestEvent xresizerequest;
  58.                XConfigureRequestEvent xconfigurerequest;
  59.                XCirculateEvent xcirculate;
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 4/30/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXAAAAnnnnyyyyEEEEvvvveeeennnntttt((((3333XXXX11111111))))    XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))     XXXXAAAAnnnnyyyyEEEEvvvveeeennnntttt((((3333XXXX11111111))))
  71.  
  72.  
  73.  
  74.                XCirculateRequestEvent xcirculaterequest;
  75.                XPropertyEvent xproperty;
  76.                XSelectionClearEvent xselectionclear;
  77.                XSelectionRequestEvent xselectionrequest;
  78.                XSelectionEvent xselection;
  79.                XColormapEvent xcolormap;
  80.                XClientMessageEvent xclient;
  81.                XMappingEvent xmapping;
  82.                XErrorEvent xerror;
  83.                XKeymapEvent xkeymap;
  84.                long pad[24];
  85.           } XEvent;
  86.  
  87.           An _X_E_v_e_n_t structure's first entry always is the type member,
  88.           which is set to the event type.  The second member always is
  89.           the serial number of the protocol request that generated the
  90.           event.  The third member always is send_event, which is a
  91.           _B_o_o_l that indicates if the event was sent by a different
  92.           client.  The fourth member always is a display, which is the
  93.           display that the event was read from.  Except for keymap
  94.           events, the fifth member always is a window, which has been
  95.           carefully selected to be useful to toolkit dispatchers.  To
  96.           avoid breaking toolkits, the order of these first five
  97.           entries is not to change.  Most events also contain a time
  98.           member, which is the time at which an event occurred.  In
  99.           addition, a pointer to the generic event must be cast before
  100.           it is used to access any other information in the structure.
  101.  
  102.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  103.           XButtonEvent(3X11), XCreateWindowEvent(3X11),
  104.           XCirculateEvent(3X11), XCirculateRequestEvent(3X11),
  105.           XColormapEvent(3X11), XConfigureEvent(3X11),
  106.           XConfigureRequestEvent(3X11), XCrossingEvent(3X11),
  107.           XDestroyWindowEvent(3X11), XErrorEvent(3X11),
  108.           XExposeEvent(3X11), XFocusChangeEvent(3X11),
  109.           XGraphicsExposeEvent(3X11), XGravityEvent(3X11),
  110.           XKeymapEvent(3X11), XMapEvent(3X11), XMapRequestEvent(3X11),
  111.           XPropertyEvent(3X11), XReparentEvent(3X11),
  112.           XResizeRequestEvent(3X11), XSelectionClearEvent(3X11),
  113.           XSelectionEvent(3X11), XSelectionRequestEvent(3X11),
  114.           XUnmapEvent(3X11), XVisibilityEvent(3X11)
  115.           _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 4/30/98)
  130.  
  131.  
  132.  
  133.